// 商品请求封装
import instance from '@/utils/request'

export const getNoticeList = (pageNum, pageSize) =>
  instance.get(`/notice/list/${pageNum}/${pageSize}`)

export const insertNotice = (notice) =>
  instance.post('/notice/add', notice)

export const deleteNoticeById = (id) =>
  instance.delete(`/notice/delete/${id}`)

export const updateNotice = (notice) =>
  instance.put('/notice/update', notice)
